/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package continuity.View;

import java.awt.Graphics;
import continuity.KeyElement;
/**
 *
 * @author FornetTeam
 */
public class KeyElementView implements ElementView {

    private KeyElement keyElement;
    
    public KeyElementView(KeyElement k)
    {
        this.keyElement=k;
    }
    
    @Override
    public void paintView(Graphics g)
    {
        if(keyElement.toString().contentEquals("Ke"))
            g.drawImage(ViewParameters.Key, 0, 0, null);
        if(keyElement.toString().contentEquals("Pu"))
            g.drawImage(ViewParameters.PickedUpKey, 0, 0, null);
    }
}